from comment.models.goods import *
from  flask import Blueprint
goods_bp=Blueprint('goods',__name__,url_prefix='/goods')
from flask_restful import Api
from comment.utils.output import output_json

goods_api=Api(goods_bp)
goods_api.representation('application/json')(output_json)
from Shopping.resources.goods.goods_resource import *
goods_api.add_resource(Goods_GoodsSpecification,'goods_specification',endpoint='goods_specification')
goods_api.add_resource(Goods_GoodsList,'goods_goods_list',endpoint='goods_goods_list')
goods_api.add_resource(Goods_GoodsDetail,'goods_goods_detail',endpoint='goods_goods_detail')
goods_api.add_resource(Goods_GoodsFullReduction,'goods_goods_full_reduction',endpoint='goods_goods_full_reduction')
goods_api.add_resource(Goods_GoodSkuDetail,'goods_goods_sku_detail',endpoint='goods_goods_sku_detail')
goods_api.add_resource(Goods_Recommend,'goods_goods_recommend',endpoint='goods_goods_recommend')
goods_api.add_resource(Goods_MerchantHotsales,'goods_goods_merchant_hot_sales',endpoint='goods_goods_merchant_hot_sales')
goods_api.add_resource(Goods_CartSkuDetail,'goods_goods_cart_sku_detail',endpoint='goods_goods_cart_sku_detail')








